package com.iule.common.playboy.mock;


/**
 * @author 柚子
 * @date {2020/3/18}
 */
public class IpMock {

    public static String getArea(String ip) {
        if (Integer.parseInt(ip.substring(ip.lastIndexOf("."))) % 2 == 0) {
            return "hangzhou";
        } else {
            return "shanghai";
        }
    }
}
